home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS0398.lzh
/
AMOSLIST
/
000141_amos-request@svcs1.digex.net_Sat Mar 14 11:43:38 1998.msg
< prev
next >
Wrap
Text File
|
1998-04-01
|
4KB
|
112 lines
>From amos-request@svcs1.digex.net Sat Mar 14 11:43:38 1998
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id LAA16385
for <mcox@access.digex.net>; Sat, 14 Mar 1998 11:43:37 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id JAA00553
for amos-out; Sat, 14 Mar 1998 09:18:20 -0500 (EST)
Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA00550
for <amos-list@svcs1.digex.net>; Sat, 14 Mar 1998 09:18:19 -0500 (EST)
Received: from sunny.bahnhof.se (sunny.bahnhof.se [193.44.91.1])
by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id JAA04650
for <amos-list@access.digex.net>; Sat, 14 Mar 1998 09:18:13 -0500 (EST)
Received: from pm1-33.bahnhof.se (jonasth@pm1-33.bahnhof.se [193.44.91.97])
by sunny.bahnhof.se (8.8.8/8.8.8) with SMTP id PAA07649
for <amos-list@access.digex.net>; Sat, 14 Mar 1998 15:18:06 +0100 (MET)
Date: 14 Mar 98 15:12:21 +0100
From: "Jonas Thorell" <jonasth@bahnhof.se>
Subject: Re: extension? Phew!! DIE THREAD DIE!!
To: "Garfield Benjamin" <amos-list@access.digex.net>
In-Reply-To: <B0000232884@mailhost.sosbbs.com>
Message-ID: <2703.377T1052T9123333@bahnhof.se>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-System: Amiga 1200/030@50 Mhz, 34 Meg, 1.5 Gig HD, 28k8
X-Software: Aweb, Miami, Thor
X-Misc-info: Who's reading this??
X-Mailer: THOR 2.5a (Amiga;TCP/IP)
Status: O
X-Status:
Garfield Benjamin (gbenjam@sosbbs.com) wrote:
>>> Well, problem is this won't work.
> > Yes it will. I tried it.
> Very strange as I just tried it as well and AMOS gives an error
> (missing End If) just as I suspected!! The only thing I can
> assume is that you and Keith are using AMOS Pro which must
> have changed things a bit. In AMOS v1.36 it will NOT work.
Yup, you're right. It's AMOS Pro that allows it. Just ran Classic too
and tried it. Error right away.
>> The logic is the same too. Select..is just
>> more advanced in that it offers some extra features.
> The logic is NOT the same. Look at the above code again. This
> will print "WOW, you're over 21!!" as long as AGE is greater than
> 9 and unequal to 21...
Ooops! You're completely right. But if we take another piece of code
then, like this.
If A=1
print "Hello"
else if a>1 and a<10
print "A is now between 2 and 9"
else
print "A is 10 or higher"
endif
and the same code using select
select A
case 1
print "Hello"
case 2-9
print "A is now between 2 and 9"
case default
print "A is 10 or higher"
end case
Not much of a difference. This is assuming one is using Pro, where the above
syntax of if else if holds true. Here the logic is exactly the same. If clauses
or select clauses is more often than not completely interchangeable. Sometimes
select is far more efficient though.
> > That would trigger the error-system. One if and three end-ifs is
> > plain wrong.
> Try it... it works fine.
Just did. Pro claims it's endif without if. In classic it worked as it should.
So we were both right.
Didn't Europress claim that Pro was a 100% compatible to classic, beside the
extensions? Well, it isn't apparently.
> other, but the whole point of this thread was that it might be
> nice to have support for SELECT...CASE in AMOS. :-)
Nice it would be indeed, especially for those stuck with Classic it seems. But for
me there are other things that should be higher up on the prioritylist. Hopefully
whoever is upgrading it thinks the same (hopefully for me that is). Only reason
that I don't know that is that I just recently resubbed here.
Shall we put this debate to end now? It seems we're basically agreeing.
---
Look at the shoes you're filling, look at the blood we're spilling
Look at the world we're killing, the way we've always done before
Look at the doubt we've wallowed, look at the leaders we've followed
Look at the lies we've swallowed and I don't wanna hear no more
---
Form an orderly queue behind the gunsight!